package com.yhp.service;

import com.yhp.bo.AddressBO;
import com.yhp.pojo.UserAddress;

import java.util.List;

public interface AddressService {
    //查询地址列表
    public List<UserAddress> queryAll(String userId);
    //新增地址
    public void addAddress(AddressBO addressBO);
    //更新地址
    public void updateAddress(AddressBO addressBO);
    //删除地址
    public void deleteAddress(String userId,String addressId);
    //设置默认地址
    public void setDefaultAddress(String userId,String addressId);
    //获取收货信息
    public UserAddress queryById(String userId,String addressId);
}
